package org.baojie.raft.delay;

import java.util.List;
import java.util.concurrent.TimeUnit;

public interface RaftCache<K, V> {

    int contains();

    int size();

    V get(K k);

    V putIfAbsent(K key, V v, long keep, TimeUnit unit);

    V remove(K k);

    List<K> touchKeys();

    boolean close();

    boolean clean();

}
